package com.atguigu.gmall.search.service;

import com.atguigu.gmall.search.entiy.Goods;
import com.atguigu.gmall.search.vo.SearchParamVo;
import com.atguigu.gmall.search.vo.SearchResponseVo;

/**
 * @author:ahang
 * @create:2022-10-13 0:25
 * @Description:
 */
public interface SearchBizService {
    /**
     * 将商品保存到es中
     * @param goods
     */
    void onSale(Goods goods);

    /**
     * 从es中删除商品
     * @param skuId
     * @return
     */
    void cancelSale(Long skuId);

    /**
     * 商品检索
     * @param paramVo
     * @return
     */
    SearchResponseVo search(SearchParamVo paramVo);

    /**
     * 更新热度分
     * @param skuId
     * @param hotScore
     */
    void updateHotScore(Long skuId, Long hotScore);
}
